<template>
  <j-select-biz-component
    :value="value"

    name="劳动者"
    displayKey="id"

    :returnKeys="returnKeys"
    :listUrl="url.list"
    :columns="columns"
    queryParamText="劳动者姓名"

    v-on="$listeners"
    v-bind="$attrs"
  />
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectCustomer',
    components: {JSelectBizComponent},
    props: ['value'],
    data() {
      return {
        returnKeys: ['name', 'id'],
        url: {list: '/empWork/list'},
        columns: [
          {title: '劳动者ID', dataIndex: 'id', align: 'center', width: 120},
          {title: '劳动者姓名', dataIndex: 'name', align: 'center', width: 120}
        ]
      }
    }
  }
</script>

<style lang="less" scoped></style>